package cn.iocoder.yudao.module.lowcode.controller.admin.script.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - Groovy 脚本分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class GroovyScriptPageReqVO extends PageParam {

    @Schema(description = "脚本名称", example = "test_script")
    private String scriptName;

    @Schema(description = "脚本显示名称", example = "测试脚本")
    private String displayName;

    @Schema(description = "脚本状态", example = "1")
    private Integer status;

    @Schema(description = "脚本分类", example = "business")
    private String category;

    @Schema(description = "是否为当前激活版本", example = "true")
    private Boolean active;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}